home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 002 / wstipspo.arc / WSTIPSPO.TXT
Text File  |  1986-07-04  |  17KB  |  413 lines

  1.            SOME WORDSTAR PROBLEMS, SOLUTIONS AND TECHNIQUES
  2.  
  3.                                   by 
  4.  
  5.                          P. L. Olympia, Ph.D.
  6.                          Darwin Systems, Inc.
  7.                  SUGI SIG/M RBBS Sysop, (301)963-5249
  8.                                09/01/84
  9.  
  10.  
  11.      Recently,  I  had the pleasure of being confronted by a group  of 
  12. Government secretaries at a gripe session.  The secretaries were irate 
  13. because  the  powers-that-be  have taken their beloved  Wang  OIS  and 
  14. replaced them with IBM XT's running WordStar (I have to confess that I 
  15. helped push for WordStar).   Now, there is no denying that WordStar is 
  16. difficult  to learn but people can and do learn it,  and even come  to 
  17. love  it.   Over the years,  I found that the people who had the  most 
  18. trouble in learning WordStar are those who were brought up with a Wang 
  19. word-processor.  There must be something about those endless menus and 
  20. prompts  that cause the brain to atrophy.   Oops,  I'm  editorializing 
  21. again...
  22.  
  23.      What  follow are some of the complaints and my solutions to them.  
  24. Included  also  are additional WordStar techniques that I  have  found 
  25. useful  over  the  years.   And just to  complete  the  set,  a  quick 
  26. reference guide to WordStar is also included.
  27.  
  28. NOTE:  In this document, the caret symbol (^) means hold down the CTRL 
  29. key; the <RET> symbol means press the <RETURN> key.
  30.  
  31.  
  32.  
  33. 1.  EDITING ONE DOCUMENT WHILE PRINTING ANOTHER
  34.  
  35.      The   secretaries  complained  that  the  IBM  XT   slowed   down 
  36. considerably  when  a document was being edited and a second  one  was 
  37. being printed.  The most cost-effective solution to this is to install 
  38. a  memory  print  spooler software.   The one I use is  the  excellent 
  39. public domain program called MSPOOL2.
  40.  
  41.      I   place MSPOOL2.COM in a subdirectory (\pd) where DOS can  find 
  42. it  via  the  PATH  command  and  add  the  following   line  to   the 
  43. AUTOEXEC.BAT file in the root directory:
  44.  
  45.      MSPOOL2 1 7              (for parallel printer in LPT1)
  46.             -or-
  47.      MODE COM1:1200,N,8,1     (for serial printer attached to COM1) 
  48.      MSPOOL2 1 7 1            (you need both lines)
  49.  
  50. The  syntax  of  the  MSPOOL2 command may  be  changed  for  "unusual" 
  51. situations. Here is the complete syntax:
  52.  
  53.      MSPOOL2 x y z
  54.  
  55. where   x = 1,2,3,4  depending on whether the printer is recognized as
  56.                      LPT1, LPT2, LPT3 or LPT4
  57.         y = the number of 7K chunks of buffer memory. In the above
  58.                      example, you are installing 49K (7x7) of buffer
  59.         z  =  1 or 2  used only if a serial printer  is  attached  to 
  60.                       either COM1 or COM2
  61.  
  62.      For  programs  that  do not work with MSPOOL2  (e.g.,  VPRINT  or 
  63. DSPOOL),  I can remove MSPOOL2 from memory by just giving the command, 
  64. MSPOOL2 x, and answering D(isable) to the prompt.
  65.  
  66.  
  67. 2.  PAGE NUMBERS OF DOCUMENTS
  68.  
  69.      The  secretaries  wanted the document pages  numbered  (beginning 
  70. with page 2) in their standard format which is at the top of the  page 
  71. and surrounded by a dash on either side.
  72.  
  73.      Here is the way it is done:
  74.  
  75.   o  Place  the  .OP (Omit Page number) command near the  top  of  the 
  76.      document
  77.  
  78.   o  Scroll  to  the  top of page 2 (use ^C or  ^QZ),  and  place  the 
  79.      following .HE (heading) command:
  80.  
  81.         .he                             - # -
  82.  
  83.      Note  that the - # - should be where you want the page number  to 
  84.      be.  Keep  in  mind that the ".he " takes up four spaces  of  the 
  85.      screen display, but NOT of the printed page.  
  86.  
  87. REMINDER: 
  88.  
  89.       You should NOT use the .PN (page number) command because it will 
  90. negate  the  .OP command - you will have the page number  on  top  and 
  91. bottom of the page.  By default, the heading line is printed two lines 
  92. above  the start of text on the page.  You can control the line place-
  93. ment  of  the  heading by using the .HM  (heading  margin),  .MT  (top 
  94. margin),  and .MB (bottom margin) commands.  Remember that the default 
  95. page size of WordStar is 66 lines (8.5 inches) but only 55  lines/page 
  96. are  printed  because 3 lines (1/3 inch) are allocated to  top  margin 
  97. space, and 8 lines (1.3 inches) are allocated to bottom margin space.
  98.  
  99.  
  100.  
  101. 3.  MARGINS AND TAB SETTINGS
  102.  
  103.      Secretaries  complained  that margins and tab  settings  are  not 
  104. "remembered"  by  WordStar  and these have to be reset each  time  the 
  105. document is edited.
  106.  
  107.      I  offered  to customize WordStar so that it will always come  up 
  108. with  the  margins  and  tab  settings  desired;   unfortunately,  the 
  109. secretaries  said that they work with many different sets  of  margins 
  110. and tab settings.
  111.  
  112.      The  next best thing is to create a file of many different  RULER 
  113. LINES,  and then read that file (^KR followed by the filename) at  the 
  114. top  of the document that one is currently working on.  Anytime that a 
  115. user wants to change settings,  all she has to do is place the  cursor 
  116. anywhere in the desired ruler line, and give the
  117.  
  118.                    ^OF     (set margins/tabs from line)
  119.  
  120. command.   Those  settings  are in effect until one either exits  from 
  121. WordStar or changes the settings, for example, by moving the cursor to 
  122. another (different) ruler line and doing another ^OF.  Because the set 
  123. of  ruler  lines are now part of the document,   it is  easy  to  make 
  124. WordStar "remember" the desired settings by doing a ^OF as soon as the 
  125. document is "opened" for edit.
  126.  
  127.      You do this to make a ruler line:
  128.  
  129.   o  Begin  a  line with two dots (..),  then do a ^P^M (or  ^P,  then 
  130.      <RET>).  The  flag character "-" shows at the right edge  of  the 
  131.      line, and the cursor moves to the line below
  132.  
  133.   o  Now type a ruler line with "-" and "!" (! indicates tab setting), 
  134.      for example:
  135.  
  136.                ------!-----!------!-----!------!-----------------
  137.  
  138.      The  first "-" defines the left margin,  and the last one defines 
  139. the right margin. You can use "L" or "R" in place of these two hyphens 
  140. to serve as a graphic reminder of the left and right margins.  Use "#" 
  141. instead of "!" if you want a decimal tab.
  142.  
  143.  
  144. 4. PAGE/DOCUMENT REFORMING
  145.  
  146.      Once  margins  and tab settings are  changed,  you  can  reformat 
  147. several  pages or the entire document without WordStar having to  stop 
  148. the  process  at  the end of a paragraph or whenever it  encounters  a 
  149. "hard" carriage return.  Here is how it is done:
  150.  
  151.   o  Make sure that hyphen-help is off  (^OH toggles it on or off)
  152.  
  153.   o  Place the cursor where you want reformatting to begin
  154.  
  155.   o  Do a ^QQ  (Repeat next command)
  156.  
  157.   o  Do a ^B   (Reform paragraph command)
  158.  
  159.   o  Watch the fun and press any key to stop reformatting at any point
  160.  
  161.  
  162. 5.  PAGE SCROLLING
  163.  
  164.      Secretaries complained that WordStar does not have a "GO TO PAGE" 
  165. command,  making  it cumbersome to move the cursor to a specific page.  
  166. Now,  WordStar is a document-oriented software and not a page-oriented 
  167. one,  but  the  lack of a "go to page" command has never been  one  of 
  168. WordStar's major drawbacks.  Here are some techniques:
  169.  
  170.      One,  if you know a unique text string in the desired  page,  you 
  171. can  easily  get there with the ^QF (Find string)  command.   You  can 
  172. repeat  this  command indefinitely with the ^L  (repeat  find/replace) 
  173. command.   You  can  also find the string forward or backward or  tell 
  174. WordStar not to distinguish between lower/uppercase.
  175.  
  176.      Two,  if you keep going back to the same page(s),  you can  embed 
  177. markers at strategic points (^Kn,  n = 0-9), and get there with ^Qn 
  178. n = 1-9).
  179.  
  180.      Three,  there  really  are better ways of doing page scroll  than 
  181. that provided by the ^QZ (up) or ^QW (down) commands.  Here are two of 
  182. them:
  183.  
  184.   -  Do a ^QQ^C (forward scroll) or ^QQ^R (backward scroll)
  185.  
  186.   -  Alternatively,  do a ^QF.  At the "FIND?" prompt, respond with ^N 
  187.      then <RET>.  At the "OPTIONS?" prompt give the number of lines to 
  188.      skip.
  189.  
  190.  
  191.  
  192.                     ADDITIONAL WORDSTAR TECHNIQUES
  193.  
  194.  
  195. PROPORTIONAL SPACING
  196.  
  197.      WordStar  has  an undocumented command that will  allow  properly 
  198. equipped printers to print with proportional spacing.  That command is 
  199. the ^P (enter it as ^PP) command.   To take advantage of this feature, 
  200. you  must  have  a version of WordStar correctly  installed  for  your 
  201. printer,  and your printer must be able to perform microspacing.   The 
  202. procedure is:
  203.  
  204.   o  Near   or   at  the  top  of  the  document,   place   the   .UJ1 
  205.      (microjustification on) command, and do a ^PP command
  206.  
  207.   o  Enter/edit your text
  208.  
  209.   o  Reform your paragraphs (^B, or ^QQ^B with hyphen-help off)
  210.  
  211.      The  last  step  is necessary because  without  it,  proportional 
  212. spacing will stop at the last line of the paragraph.
  213.  
  214.  
  215. FILLING OUT PREPRINTED FORMS
  216.  
  217.      Use the command ^PC to make WordStar pause during printing so you 
  218. can  move the printhead to the appropriate place where  required  data 
  219. will  be  typed  onto the form.   If you do not have a  printer  which 
  220. allows  you  to manually move the printhead,  you can  design  a  form 
  221. layout similar to the preprinted form and place ^PC at the appropriate 
  222. places.
  223.  
  224.  
  225. DOUBLE SPACING WITHOUT MAJOR CHANGES TO THE DOCUMENT
  226.  
  227.      Often  one  is faced with the task of printing a draft copy of  a 
  228. document (created with single-spacing) in double space.   Rather  than 
  229. make  extensive changes to the document via ^OS,  then ^B (or  ^QQ^B), 
  230. you can leave the document single-spaced and still get a double-spaced 
  231. printed copy.   This requires the MailMerge option. 
  232.  
  233.       Here is how it is done: 
  234.  
  235.   o  Place the following dot commands at the top of the document:
  236.           .pf on     (turn on print forming)
  237.           .ls2       (line spacing = 2)
  238.  
  239.   o  Print the document using the "M" command (rather than the "P"
  240.      command) at the WordStar opening menu.
  241.  
  242.  
  243. WHERE ARE YOU IN A DOCUMENT?
  244.  
  245.      If  you ever want to know at which line of the document  you  are 
  246. currently in,  just do a ^OP (Page break display on/off).   The status 
  247. line,  FL=xx, will show you that you are in line xx.  The FC=yy in the 
  248. status  line shows you that you are in the yyth  character.   This  is 
  249. handy  if  you  want  to  find out how many lines  there are   in  the 
  250. document. Just send the cursor to the bottom of the document (^QC) and 
  251. then do a ^OP.   Note that a second ^OP toggles you back to page break 
  252. display  on.   With  a  little  math,  you can  also  figure  out  the 
  253. approximate number of words in the document.
  254.  
  255.  
  256.  
  257.                  QUICK REFERENCE TO WORDSTAR COMMANDS
  258.  
  259.  
  260. CURSOR MOVEMENT 
  261.     
  262.                   ^S  Left CHARACTER       ^D  Right CHARACTER
  263.                   ^QS Left LINE            ^QD Right LINE
  264.                   ^A  Left WORD            ^F  Right WORD
  265.                   ^QE To Top of screen     ^QX To Bottom of screen     
  266.                   ^QR Beginning of file    ^QC To End of file
  267.                                 
  268.                                  +--------+
  269.                                  |   E    |
  270.                                  |   up   |
  271.                     _____________|________|_____________
  272.                     |   A    |   S    |   D    |   F    |
  273. CURSOR CONTROL      |  left  |  left  | right  | right  |
  274.                     |  word  |  char  | char   | word   |
  275.                     +-----------------------------------+
  276.                                  |   X    |
  277.                                  |  down  |
  278.                                  +--------+
  279. ------------------------------------------------------------------------
  280.  
  281. SCROLL:            ^Z Up one line           ^C Up one screen
  282.                    ^W Down one line         ^R Down one screen
  283. ------------------------------------------------------------------------
  284.  
  285. DELETE:            ^G Char left             ^RUB Char right
  286.                    ^Y Line                  ^T   Word right
  287.                    ^QY to end of line       ^QRUB to begin of line
  288.  
  289. ------------------------------------------------------------------------
  290.  
  291. OTHER:             ^V insertion togle       ^I  Tab
  292.                    ^U restart command       ^VN Insert (with WW)
  293.                    ^B Reform to para.       ^P  Overprint
  294.  
  295.                    ^J Menu      ^Q,J,K,O,P prefix menus
  296.  
  297. --------------------------------------------------------------------------
  298.  
  299. SAVES:  ^KD  Save      ^KX Save & get CP/M      ^KS Save & re-edit same
  300.                                                     [ in-progress save ]
  301.         ^KQ  Abort     ^KP Print toggle
  302.  
  303. --------------------------------------------------------------------------
  304.  
  305. BLOCKS:  ^KB mark block begin            ^KK mark block end
  306.          ^QB cursor to block start       ^QK cursor to block end
  307.  
  308.                        ^KH Hide/restore marker
  309.        
  310.          ^KV move block                  ^KC recopy block
  311.          ^KY delete block                ^KW write block to file
  312.  
  313.          ^R  repeat last command         ^KJV help!
  314.  
  315.                        ^QV Return cursor to block start
  316.  
  317. --------------------------------------------------------------------------- 
  318.  
  319. TEXT MARKERS:
  320.               ^K 0-9 Set/Hide text marker    ^Q 0-9  Cursor to marker
  321.  
  322. ---------------------------------------------------------------------------
  323.  
  324. FIND/      ^QF Find    ^QA Replace     ^L Find/Replace next occurence
  325. REPLACE:
  326.              options: <n> the nth occurence
  327.                        G  global replace or find last
  328.                        N  replace without query
  329.                        B  search backward
  330.                        U  ignore case
  331.                        W  whole word only
  332.  
  333. --------------------------------------------------------------------------
  334.  
  335. ADDITIONAL      ^QH Block Write          ^QR Read additional file
  336.   FILES:        ^QJ Delete File          ^QP Print file
  337.  
  338. --------------------------------------------------------------------------
  339.  
  340. CONTROL:    ^O  display current status
  341.             ^OC center this line
  342.             ^OL set left margin            ^OR set right margin
  343.             ^OI set tab here               ^ON clear tab here
  344.             
  345.             ^OF set margins & tabs to match current line
  346.  
  347.  ^V..^P <return> <draw ruler with "-" for blank and "!" for tab> then ^O^F
  348.  to store reusable non-printing ruler.
  349.  
  350.             ^OS set line spacing
  351.             ^B  reform to end of paragraph
  352.             ^OX margin release
  353.             ^OW word wrap
  354.             ^OJ justify
  355.             ^OT ruler
  356.             ^OP page ends
  357.             ^OD dot commands
  358.             ^PO non-break spaces
  359.             ^P<ret> overprint next line
  360.  
  361. ---------------------------------------------------------------------------
  362.  
  363. "P" Commands: Put a ^Char in the file
  364.  
  365.             ^PS Underscore start/end
  366.             ^PB Boldface start/end
  367.           
  368.            <space> cancel prefix
  369.            < ret > overprint line follows
  370.  
  371. --------------------------------------------------------------------------
  372.  
  373. DOTs        .PL paper length     defaults to 11 inches
  374.             .MT margin top           "        3 lines
  375.             .MB margin bottom        "        8 lines
  376.             .HM heading margin       "        2 lines
  377.             .FM footer margin        "        2 lines
  378.             .PC page # col.          "        1/2 right margin
  379.             .PO page offset          "        8 cols.
  380.             .PA new page
  381.             .CPn conditional page
  382.             .HE {or .HE #} header text
  383.             .FO  "     "   footer text
  384.             .OP omit page numbers
  385.             .PN start with page number
  386.             .IG non-printing comment
  387.  
  388. -------------------------------------------------------------------------
  389.  
  390. SPECIALS:  ^QCOP number of words in the text
  391.  
  392.            ^QQn  Repeat:  eg. QQZn scroll line at speed n (0-9)
  393.                               QQCn scroll screens
  394.  
  395. -------------------------------------------------------------------------
  396.  
  397.                   WORDSTAR HELP COMMANDS
  398.  
  399.  
  400.       ^O    Show me the current status
  401.  
  402.       ^JH   Set level of prompts
  403.       ^JD   show dot commands and print controls
  404.       ^JI   command index
  405.       ^JS   status line
  406.       ^JF   flags info.
  407.       ^JB   paragraph commands
  408.       ^JP   place markers
  409.       ^JM   margins and tabs
  410.       ^JV   moving text
  411.  
  412.                              - the end -
  413.